package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        Boolean start = str.startsWith("www.");
        System.out.println(start);
        Boolean end = str.endsWith(".com");
        System.out.println(end);
    }
}
